package com.opal.jx.service.impl;

import com.opal.jx.entity.table.JxAssessBzcj;
import com.opal.jx.entity.table.JxAssessBzcjZg;
import com.opal.jx.entity.table.JxDept;
import com.opal.jx.entity.table.JxEmp;
import com.opal.jx.mapper.mysql.JxAssessCommonMapper;
import com.opal.jx.service.JxAssessCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JxAssessCommonServiceImpl implements JxAssessCommonService {

    @Autowired
    private JxAssessCommonMapper jxAssessCommonMapper;

    @Override
    public List<JxEmp> selectEmpReturnLead(String pkDept) {
        return  jxAssessCommonMapper.selectEmpReturnLead(pkDept);
    }

    @Override
    public List<JxAssessBzcj> jxAssessCommonMapper(String postId, String pkDept) {
        return  jxAssessCommonMapper.selectZuZhangInfo(postId, pkDept);
    }

    @Override
    public List<JxEmp> selectDeptAllZhuGuan(String pkDept, List<String> postNames) {
        return  jxAssessCommonMapper.selectDeptAllPostNamesEmpInfo(pkDept,postNames);
    }

    @Override
    public List<JxEmp> selectEmpByLikePostName(String postName,String pkDept) {
        return jxAssessCommonMapper.selectEmpByLikePostName(postName,pkDept);
    }

    @Override
    public List<JxEmp> selectFuZhuZaGongInfo(Long postId, String pkDept, List<String> ps) {
        return jxAssessCommonMapper.selectFuZhuZaGongInfo(postId,pkDept,ps);
    }

    @Override
    public List<JxDept> getAllJxDeptService() {
        return jxAssessCommonMapper.getAllJxDept();
    }

    @Override
    public List<JxDept> getJxDeptByPkOrg(String pkOrg) {
        return jxAssessCommonMapper.getJxDeptByPkOrg(pkOrg);
    }

    @Override
    public List<JxAssessBzcjZg> getBzcjZhuGuanJxAssess(Integer year, Integer month) {

        return jxAssessCommonMapper.getBzcjZhuGuanJxAssess(year,month);
    }

    @Override
    public List<JxAssessBzcjZg> getCxAndFzAssessDataByYearAndMonth(Integer year, Integer month) {
        return jxAssessCommonMapper.getCxAndFzAssessDataByYearAndMonth(year,month);
    }
}
